package day04;
import java.sql.SQLOutput;
import java.util.Scanner;
public class HomeWork {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
      for (int times =0; times<5 ; times++){
          System.out.println("行动是成功的阶梯");

      }
        System.out.println("继续执行");
      for (int number =1; number<=9; number++){
          System.out.println(number + "*9=" + number * 9);
      }
      for (int number =1; number<=9; number+=2) {
          System.out.println(number + "*9=" + number * 9);
        }
      for (int number =9; number>=1; number--) {
          System.out.println(number + "*9=" + number * 9);

      }























       /*
       int number =(int) Math.random()*1000+1;
       int guess;
       do {
           System.out.println("猜吧");
           guess = scan.nextInt();
           if (guess>number){
               System.out.println("猜大了");

           }else if (guess<number){
               System.out.println("猜小了");

           }else {
               System.out.println("猜对了");

           }

       }while (guess!=number);


        */

































        /*
        int number =(int) Math.random()*1000+1;
        System.out.println("猜吧");
        int guess =scan.nextInt();
        while (guess!=number) {
            if (guess > number) {
                System.out.println("猜大了");

            } else {
                System.out.println("猜小了");


            }
            System.out.println("猜吧");
            guess = scan.nextInt();
            }
                System.out.println("猜对了");




         */
















        /*


        System.out.println("请选择功能：1.取款 2.存款 3.查询余额 0.退卡");
        int comand =scan.nextInt();
        switch (comand){
            case 1:
                System.out.println("存款");
                break;
            case 2:
                System.out.println("取款");
                break;
            case 3:
                System.out.println("查询余额");
            case 0:
                System.out.println("退卡");
                break;
            default:
                System.out.println("输入错误");



         */
        }


    }

